import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'
import { HydratedDocument } from 'mongoose'

export type TableDocument = HydratedDocument<Table>

@Schema()
export class Table {
  @Prop({ unique: true })
  public id: string

  @Prop()
  public name: string

  @Prop()
  public b: string

  @Prop()
  public c: string
}

export const TableSchema = SchemaFactory.createForClass(Table)
